package com.ss.android.article.base.feature.detail2.picgroup.view;

import android.graphics.drawable.Drawable;
import android.view.View;

import com.facebook.drawee.interfaces.SettableDraweeHierarchy;

final class m implements SettableDraweeHierarchy {
    private final PictureDetailLayout.a b;
    private final PictureDetailLayout.d a;

    m(PictureDetailLayout.a arg1, PictureDetailLayout.d arg2) {
        this.b = arg1;
        this.a = arg2;
    }

    public final Drawable getTopLevelDrawable() {
        return this.b.f.getResources().getDrawable(com.ss.android.article.browser.R.color.transparent);
    }

    public final void setImage(Drawable drawable, float progress, boolean immediate) {
        if(drawable == null) {
            this.setFailure();
        }
        else if(progress >= 1f) {
            this.a.a.setImageDrawable(drawable);
            this.a.a(true);
            this.a.c.setVisibility(View.GONE);
        }
    }

    public final void reset() {
    }

    public final void setProgress() {
    }

    public final void setFailure() {
        this.a.a(false);
        this.a.c.setVisibility(View.GONE);
    }

    public final void setRetry() {
        this.a.a(false);
        this.a.c.setVisibility(View.GONE);
    }

    public final void setControllerOverlay() {
    }
}

